﻿using System.Runtime.Serialization;

namespace Ping.Core
{
	/// <summary>
	/// Contains all data to perform a traceroute.
	/// </summary>
	[DataContract]
	public sealed class TracerouteRequest
		: Request
	{
		public TracerouteRequest()
		{
			MaxHops = 30;
		}

		/// <summary>
		/// The final destination of the trace.
		/// </summary>
		[DataMember] public IpAddress Destination;

		/// <summary>
		/// The maximum number of hops until the trace stops.
		/// </summary>
		[DataMember] public int MaxHops;
	}
}